<div class="zs-body" data-ng-init="formInit('gzvisitorreserve', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzvisitorreserve');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">行政管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">访客预约管理</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" ng-click="addRow('gzvisitorreserve') && openWindow('edit');" />
            <input type="button" class="zs-btn orange" value="编辑" ng-click="editRow('gzvisitorreserve', gzvisitorreserve.sRows[0]) && openWindow('edit')" />
            <input type="button" class="zs-btn orange" value="删除 " ng-click="delEntitys('gzvisitorreserve')" />
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
            <div class="tool item" style="margin-left:6px;">
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="接待部门名称" ng-model="gzvisitorreserve.queryObject['jdbmmc']" />
                </span>
				<span class="search-warpper">
					<i class="icon"></i>
					<input type="text" class="zs-input" placeholder="来访单位" ng-model="gzvisitorreserve.queryObject['lfdw:like']" />
				</span>
				<span class="search-warpper" style="width: 65px;">接待部门
				</span>
				<span class="search-warpper">
				   <ag-Combobox class="zs-input" style="width:175px;height: 28px" 
				   		fn='dptidEdit'
				   		para="{ uDictionary:true,
				   				dictionary:'p_department',
				   				pidField:'pid',
				   				leafField:'leaf'}"
				   		ng-model="gzvisitorreserve.queryObject['jdbmmc:=']"/>
				</span>
				<span class="search-warpper" style="width: 65px;">起止时间
				  </span>
				            	<span class="search-warpper"  style="width: 160px;">
				    <ag-Datebox 
				 		class="zs-input" style="width:155px;height: 28px"
				 		ng-model="gzvisitorreserve.queryObject['dfsj:>=']" >
						</ag-Datebox>
				</span>-
				 <span class="search-warpper"  style="width: 160px;">
				    <ag-Datebox 
				 		class="zs-input" style="width:155px;height: 28px"
				 		ng-model="gzvisitorreserve.queryObject['dfsj:<=']" >
						</ag-Datebox>
				 </span>
            </div>
            <div class="operation item" style="margin-top:7px;">
                <!-- <a class="ope-1" ng-click="loadData('gzvisitorreserve')"></a>
                <a class="ope-2"></a>-->
                <input type="button" class="zs-btn orange" value="查询" ng-click="loadData('gzvisitorreserve')" />
            </div>
            <div class="switch">

            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox" ng-click="selectAll('gzvisitorreserve','allCheckbox');" />
                                    </th>
                                    <!--	<th>ID</th>-->
                                    <th>来访单位</th>
                                    <th>来访主题</th>
                                    <!--<th>来访人员</th>-->
                                    <th>来访人数</th>
                                    <th>到访时间</th>
                                    <th>是否需要安排住宿</th>
                                    <!--<th>男性人数</th>
									<th>女性人数</th>-->
                                    <th>到访结束时间</th>
                                    <!--<th>创建人ID</th>-->
                                    <th>领队联系电话</th>
                                    <!--<th>考察内容</th>
									<th>接待负责人ID</th>
									<th>接待负责人名称</th>
									<th>参与人</th>
									<th>接待部门ID</th>-->
                                    <th>接待部门名称</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzvisitorreserve.datas">
                                    <td>
                                        <input type="checkbox" ng-click="selectRow('gzvisitorreserve',r);" ng-model="r.selected" />
                                    </td>
                                    <!--  ID -->
                                    <!--<td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>-->
                                    <!--  来访单位 -->
                                    <td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.lfdw"></label>
                                        </a>
                                    </td>
                                    <!--  来访主题 -->
                                    <td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.lfzt"></label>
                                        </a>
                                    </td>
                                    <!--  来访人员 -->
                                    <!--<td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.lfry"></label>
                                        </a>
                                   </td>-->
                                    <!--  来访人数 -->
                                    <td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.lfrs"></label>
                                        </a>
                                    </td>
                                    <!--  到访时间 -->
                                    <td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.dfsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                    </td>
                                    <!--  是否需要安排住宿 -->
                                    <td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.sfxyapzsName"></label>
                                        </a>
                                    </td>
                                    <!--  男性人数 -->
                                    <!--<td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.nxrs"></label>
                                        </a>
                                   </td>-->
                                    <!--  女性人数 -->
                                    <!--<td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.wxrs"></label>
                                        </a>
                                   </td>-->
                                    <!--  到访结束时间 -->
                                    <td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.dfjssj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                    </td>
                                    <!--  创建人ID -->
                                    <!--<td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.crjid"></label>
                                        </a>
                                   </td>-->
                                    <!--  领队联系电话 -->
                                    <td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.tel"></label>
                                        </a>
                                    </td>
                                    <!--  考察内容 -->
                                    <!--<td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.kcnr"></label>
                                        </a>
                                   </td>-->
                                    <!--  接待负责人ID -->
                                    <!--<td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.jdfzrid"></label>
                                        </a>
                                   </td>-->
                                    <!--  接待负责人名称 -->
                                    <!--<td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.jdfzrmc"></label>
                                        </a>
                                   </td>-->
                                    <!--  参与人 -->
                                    <!--<td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.cyr"></label>
                                        </a>
                                   </td>-->
                                    <!--  接待部门ID -->
                                    <!--<td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.jdbmid"></label>
                                        </a>
                                   </td>-->
                                    <!--  接待部门名称 -->
                                    <td>
                                        <a ng-click="editRow('gzvisitorreserve',r) && openWindow('edit');">
                                            <label ng-bind="r.jdbmmcName"></label>
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzvisitorreserve'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="访客预约管理编辑" width='760px' height='586px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
                            <!--<tr>
                                <td class="text" width="20%">ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzvisitorreserve.editRow.id" class="zs-input" />
                                </td>
                            </tr>-->
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>来访单位
                                </td>
                                <td class="left" width="30%" colspan="3">
                                    <input type="text" ng-model="gzvisitorreserve.editRow.lfdw" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="来访单位" required ng-model="gzvisitorreserve.editRow.lfdw"
                                            name="form_lfdw" /></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>来访主题
                                </td>
                                <td class="left" width="30%" colspan="3">
                                    <input type="text" ng-model="gzvisitorreserve.editRow.lfzt" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="来访主题" required ng-model="gzvisitorreserve.editRow.lfzt"
                                            name="form_lfzt" /></span>
                                </td>
                            </tr>

                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>到访时间
                                </td>
                                <td class="left" width="30%" colspan="3"><span>
                                        <ag-Datebox id='fi_dfsj' showcurday='gzvisitorreserve.editRow.FIELD_ISNEW'
                                            class="zs-input" style="width:160px;height: 28px" ng-model="gzvisitorreserve.editRow.dfsj">
                                        </ag-Datebox>
                                        ~
                                        <ag-Datebox id='fi_dfjssj' showcurday='gzvisitorreserve.editRow.FIELD_ISNEW'
                                            class="zs-input" style="width:160px;height: 28px" ng-model="gzvisitorreserve.editRow.dfjssj">
                                        </ag-Datebox>
                                    </span>

                                    <span ng-show="false"><input hide-novalidate="true" alias="到访开始时间" required
                                            ng-model="gzvisitorreserve.editRow.dfsj" name="form_dfsj" /></span>

                                    <span ng-show="false"><input hide-novalidate="true" alias="到访结束时间" required
                                            ng-model="gzvisitorreserve.editRow.dfjssj" name="form_dfjssj" /></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>来访人员
                                </td>
                                <td class="left" width="30%" colspan="3"><span>
                                        <!--<input type="text" ng-model="gzvisitorreserve.editRow.lfry" class="zs-input" />-->
                                        <textarea type="text" ng-model="gzvisitorreserve.editRow.lfry" class="zs-input"
                                            style="width:100%;height: 80px;" /></textarea></span>

                                    <span ng-show="false"><input hide-novalidate="true" alias="来访人员" required ng-model="gzvisitorreserve.editRow.lfry"
                                            name="form_lfry" /></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>来访人数
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzvisitorreserve.editRow.lfrs" class="zs-input" />
                                    <span ng-show="false"><input hide-novalidate="true" alias="来访人数" required ng-model="gzvisitorreserve.editRow.lfrs"
                                            name="formlfrs" /></span>
                                </td>

                                <td class="text" width="20%">
                                    <font color="red">*</font>是否需要安排住宿
                                </td>
                                <td class="left" width="30%"><span>
                                        <ag-Combobox style="width:220px;height:28px;" para="{	uDictionary:true,
                                        		dictionary:'p_yesorno'}"
                                            ng-model="gzvisitorreserve.editRow.sfxyapzs" text-Value="gzvisitorreserve.editRow.sfxyapzsName" /></span>

                                    <span ng-show="false"><input hide-novalidate="true" alias="是否需要安排住宿" required
                                            ng-model="gzvisitorreserve.editRow.sfxyapzs" name="formsfxyapzs" /></span>
                                    <!--<input type="text" ng-model="gzvisitorreserve.editRow.sfxyapzs" class="zs-input" />-->
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>男性人数
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzvisitorreserve.editRow.nxrs" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="男性人数" required ng-model="gzvisitorreserve.editRow.nxrs"
                                            name="formNMXRS" /></span>
                                </td>
                                <!--  </tr>
          					<tr>-->
                                <td class="text" width="20%">
                                    <font color="red">*</font>女性人数
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzvisitorreserve.editRow.wxrs" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="女性人数" required ng-model="gzvisitorreserve.editRow.wxrs"
                                            name="formNXRS" /></span>
                                </td>
                            </tr>

                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>考察内容
                                </td>
                                <td class="left" width="30%" colspan="3">
                                    <!--<input type="text" ng-model="gzvisitorreserve.editRow.kcnr" class="zs-input" />--><span>
                                        <textarea type="text" ng-model="gzvisitorreserve.editRow.kcnr" class="zs-input"
                                            style="width:100%;height: 80px;" /></textarea></span>

                                    <span ng-show="false"><input hide-novalidate="true" alias="考察内容" required ng-model="gzvisitorreserve.editRow.kcnr"
                                            name="formKCNR" /></span>
                                </td>
                            </tr>

                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>领队联系电话
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzvisitorreserve.editRow.tel" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="领队联系电话" required
                                            ng-model="gzvisitorreserve.editRow.tel" name="formTEL" /></span>
                                </td>
                                <td class="text" width="20%">
                                    <font color="red">*</font>创建人名称
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzvisitorreserve.editRow.cjrmc" class="zs-input" />
                                    <span ng-show="false"><input hide-novalidate="true" alias="创建人名称" required ng-model="gzvisitorreserve.editRow.cjrmc"
                                            name="formCJRMC" /></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>接待部门名称
                                </td>
                                <td class="left" width="30%">
                                    <!--<input type="text" ng-model="gzvisitorreserve.editRow.jdbmmc" class="zs-input" />-->
                                    <span>
                                        <ag-Combobox class="zs-input" style="width:220px;height: 28px" fn='dptidEdit'
                                            para="{ uDictionary:true,
													dictionary:'p_department',
													pidField:'pid',
		                    						leafField:'leaf'}"
                                            ng-model="gzvisitorreserve.editRow.jdbmmc" text-Value="gzvisitorreserve.editRow.jdbmmcName" /></span>
                                    <span ng-show="false"><input hide-novalidate="true" alias="接待部门名称" required
                                            ng-model="gzvisitorreserve.editRow.jdbmmc" name="formJDBMMC" /></span>
                                </td>

                                <td class="text" width="20%">
                                    <font color="red">*</font>接待负责人名称
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzvisitorreserve.editRow.jdfzrmc" class="zs-input" />
                                    <span ng-show="false"><input hide-novalidate="true" alias="接待负责人名称" required
                                            ng-model="gzvisitorreserve.editRow.jdfzrmc" name="formJDFZR" /></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">参与人</td>
                                <td class="left" width="30%" colspan="3">
                                    <textarea type="text" ng-model="gzvisitorreserve.editRow.cyr" class="zs-input"
                                        style="width:100%;height: 80px;" /></textarea>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red" ng-click="formValidate(form) && save('gzvisitorreserve', gzvisitorreserve.editRow, saveCloseWindow)" />
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>